#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    static void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg);

private slots:
    void on_pb_QtFatalMsg_clicked();
    void on_pb_QtDebugMsg_clicked();
    void on_pb_QtWarningMsg_clicked();
    void on_pb_QtInfoMsg_clicked();
    void on_pb_QtCriticalMsg_clicked();
    void on_pb_readFile_clicked();

    void on_pb_QtInfoMsg_pressed();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
